import React from 'react';

import type { IBlankMod } from './data.d';
import ExceptionMod from './exception';

const ErrorMod = (props: IBlankMod) => {
  const defaultProps = {
    ...props,
    children: '抱歉，数据先生开小差了~',
    showBtn: true,
    height: '240px',
    showImg: true,
    imgSrc: 'https://img.alicdn.com/tps/TB1UmrVPXXXXXXFapXXXXXXXXXX-75-76.png',
    btnText: '刷新一下',
    horizontal: false,
  };
  const newProps = { ...defaultProps, ...props };
  return <ExceptionMod {...newProps} />;
};

export default ErrorMod;
